package com.warom.sdg.dto;

/**
 * 登录请求数据传输对象
 */
public class LoginDto {
    private String username;
    private String password;
    private boolean rememberMe;

    // 无参构造函数
    public LoginDto() {
    }

    // 带参构造函数
    public LoginDto(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public LoginDto(String username, String password, boolean rememberMe) {
        this.username = username;
        this.password = password;
        this.rememberMe = rememberMe;
    }

    // Getters and Setters
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    @Override
    public String toString() {
        return "LoginDto{" +
                "username='" + username + '\'' +
                ", password='******'" + // 不输出明文密码
                ", rememberMe=" + rememberMe +
                '}';
    }
} 